<?php
require_once("../data/db_connection.php");
require_once("../constants.php");
require_once("../Utils.php");

$db = new db();

$user_id = getFinalValue($_POST[PARAM_USER_ID]);
$event_id = getFinalValue($_POST[PARAM_EVENT_ID]);

// 0 表示是自己创建， 1 表示未接受邀请 2 表示接受邀请
$sql = "UPDATE pTableUserEvent Set pIfConfirmInvite = 2 
				WHERE pUserId = " . $user_id . " and pEventId = " . $event_id;
$return_id = $db->update_get_result($sql);

echo $return_id;
?>